// 自定义插件
import SvgIcon from '@/components/SvgIcon/index.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import vueTable from '@/components/Table/index.vue'
import vuePage from '@/components/Page/index.vue'
import bar from './charts/bar.vue'
import pie from './charts/pie.vue'
const allGloablComponent = { SvgIcon, vueTable, vuePage, bar, pie }
export default {
  // 必须叫做install
  install(app) {
    Object.keys(allGloablComponent).forEach(key => {
      app.component(key, allGloablComponent[key])
    })
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  }
}
